<template>
  <div>
    <button @click="show = true">点我</button>

    <Dialog 
      :show="show"
      :title="'这是一个标题名称'"
      :desc="'2205A'"
      @close="show=false"
      @ok="show=false"
    >
      <div>这是一段话：床前明月光</div>
    </Dialog>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import Dialog from './components/Dialog/index.vue'

// 控制弹框展示/隐藏
const show = ref(false)

</script>

<style lang="scss" scoped>

</style>